package com.shop.server.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author ghy
 * @version 1.0
 * @date 2020-10-29
 */
@FeignClient("shop-sms-service")
public interface SmsFeign {

    /**
     * 发送短信
     * @param phone
     * @param code
     * @return
     */
    @GetMapping("/sms/send")
    String send(@RequestParam("phone") String phone, @RequestParam("code") String code);

}
